<template>
  <div>
    <!-- v-html 无法解析组件 -->
    <div v-html="msg"></div>

  </div>
</template>

<script setup lang="ts">
  import HelloWorld from './components/HelloWorld.vue';
  let msg: string = '<HelloWorld />'
</script>

<style lang="scss" scoped>

</style>